<div class="indexWidth">
    <button type="button" class="btn btn-info mainButtonRight"><a
            href="javascript:takeout.openMenu('${ctxPath!}/pd/list', null)" class="mianAcolor">返回</a></button>
    <div class="sectionTitle">
        获取密码
        <hr>
    </div>
<form id="advForm"  action="${ctxPath!}/adv/pdsave" method="POST" class="form-horizontal">
    <input type="hidden" id="id" name="pd.id" class="mainSetWidth" value="${pd.id!}" />
    <input type="hidden" name="pd.type" class="mainSetWidth" value="2" />

    <div class="articleFormLabel">
        <label class="mainSetConsistentWidth"></label>
        <!--<input type="text" name="pd.content" class="mainSetWidth" value="${pd.content!}" placeholder="" />-->
        <textarea name="pd.content" id="news_content" style="width:800px;height:400px;">${pd.content!}</textarea>
    </div>

    <div class="form-group">
        <button style="margin-left: 100px;width:95px;" class="btn btn-info articleFormButton" type="button"
                onclick="takeout.ajaxFormMainPanel('advForm')" >保存</button>
    </div>

    <script>
        KindEditor.ready(function(K) {
            window.editor = K.create('#news_content', {
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        K('form[name=form1]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        K('form[name=form1]')[0].submit();
                    });
                },
                afterBlur: function () { this.sync(); },
                allowImageUpload : true,
                uploadJson : '${ctxPath!}/adv/uplodImg'
            });
        });
    </script>

</form>
</div>